﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Automobile.service.DAL;
using Automobile.service.Model;
using System.Data;

namespace Automobile.service.BLL
{
    public class SupplierBll
    {
        SupplierDal dal = new SupplierDal();
        /// <summary>
        /// 显示供货商信息
        /// </summary>
        /// <returns></returns>
        public List<SupplierModel> Supplier()
        {
            return dal.Supplier();
        }
        /// <summary>
        /// 添加供货商信息
        /// </summary>
        /// <returns></returns>
        public int AddSupplier(SupplierModel s)
        {
            return dal.AddSupplier(s);
        }
        /// <summary>
        /// 删除供货商信息
        /// </summary>
        /// <returns></returns>
        public int DeleSupplier(int Supplier_Id)
        {
            return dal.DeleSupplier(Supplier_Id);
        }

        /// <summary>
        /// 取单个供货商信息
        /// </summary>
        /// <returns></returns>
        public DataTable GetSupplier(string Supplier_Id)
        {
            return dal.GetSupplier(Supplier_Id);
        }

        /// <summary>
        /// 更新供货商信息
        /// </summary>
        /// <param name="stu"></param>
        /// <returns></returns>
        public int UpdateSupplierModel(SupplierModel s)
        {
            return dal.UpdateSupplierModel(s);
        }
    }
}
